package com.xunk.equipment.domain;

import java.io.Serializable;
import java.util.List;

/**
 * @ProjectName: xunk
 * @Package: com.xunk.equipment.domain
 * @ClassName: EquipmentPropertiesResp
 * @Author: dongxiaoxin
 * @Description:
 * @Date: 2021/3/26 10:51
 * @Version: 1.0
 */
public class EquipmentPropertiesData implements Serializable {

    private List<PropertyData> properties;

    public static class PropertyData{

        /**
         *  设备属性id
         */
        private String pid;
        /**
         *  设备属性状态
         */
        private Integer status;
        /**
         *  设备属性值
         */
        private Object value;
        /**
         *  设备描述，属性值获取不到会有指定错误描述
         */
        private String description;

        public PropertyData(){}
        public PropertyData(String pid ,Object value){
            this.pid = pid;
            this.value = value;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public String getPid() {
            return pid;
        }

        public void setPid(String pid) {
            this.pid = pid;
        }

        public Integer getStatus() {
            return status;
        }

        public void setStatus(Integer status) {
            this.status = status;
        }

        public Object getValue() {
            return value;
        }

        public void setValue(Object value) {
            this.value = value;
        }
    }

    public List<PropertyData> getProperties() {
        return properties;
    }

    public void setProperties(List<PropertyData> properties) {
        this.properties = properties;
    }
}
